<!DOCTYPE html>
<html>

<head>
    <script src="//hm.baidu.com/hm.js?6da605d5179851cd3e688506c96b7613"></script>
    <style type="text/css">
        .contentPanel {
            margin: 20px 20px;
        }
        
        .line-down-5h {
            margin-bottom: 10px;
        }
        
        .div_center {
            position: fixed;
            /*or前面的是absolute就可以用*/
            width: 100%;
            text-align: center;
            bottom: 0px;
        }
    </style>





    <title>汽车检测管理系统</title>
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <!-- name="viewport" 的详细用法  http://www.php100.com/html/webkaifa/HTML5/2012/0831/10979.html -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/IE_MES/images/dp.png" type="image/x-icon">
    <!-- 
	width - viewport的宽度 height - viewport的高度
	initial-scale - 初始的缩放比例
	minimum-scale - 允许用户缩放到的最小比例
	maximum-scale - 允许用户缩放到的最大比例
	user-scalable - 用户是否可以手动缩放
	 -->
    <link rel="stylesheet" href="/IE_MES/css/iemes_report.css" type="text/css">
    <link rel="stylesheet" href="/IE_MES/notebook/notebook_files/font.css" type="text/css">
    <link rel="stylesheet" href="/IE_MES/notebook/notebook_files/app.v1.css" type="text/css">
    <link rel="stylesheet" href="/IE_MES/css/lanyuan.css" type="text/css">
    <!-- base start 重要部分不可删改-->
    <script type="text/javascript" src="/IE_MES/notebook/notebook_files/app.v1.js"></script>
    <script type="text/javascript" src="/IE_MES/notebook/notebook_files/app.plugin.js"></script>
    <script type="text/javascript" src="/IE_MES/js/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="/IE_MES/js/jquery/jquery-validation/jquery.validate.min.js"></script>
    <script type="text/javascript" src="/IE_MES/js/jquery/jquery-validation/messages_cn.js"></script>
    <!-- 引入layui框架 -->
    <script type="text/javascript" src="/IE_MES/layui/lay/dest/layui.all.js"></script>
    <link id="layuicss-laydatecss" rel="stylesheet" href="http://192.168.1.117:8080/IE_MES/layui/css/modules/laydate/laydate.css" media="all">
    <link id="layuicss-skinlayercss" rel="stylesheet" href="http://192.168.1.117:8080/IE_MES/layui/css/modules/layer/default/layer.css?v=3.0.3303" media="all">
    <link id="layuicss-skincodecss" rel="stylesheet" href="http://192.168.1.117:8080/IE_MES/layui/css/modules/code.css" media="all">
    <script type="text/javascript" src="/IE_MES/layui/layui.js"></script>
    <link rel="stylesheet" href="/IE_MES/layui/css/layui.css">


    <script type="text/javascript" src="/IE_MES/common/common.js"></script>
    <script type="text/javascript" src="/IE_MES/js/jquery/underscore.js"></script>
    <script type="text/javascript" src="/IE_MES/common/lyGrid.js"></script>
    <script type="text/javascript" src="/IE_MES/js/base/public_operwindows.js"></script>

    <!-- 引入Echarts依赖文件 开始 -->

    <script type="text/javascript" src="/IE_MES/js/echarts/dataTool.min.js"></script>
    <script type="text/javascript" src="/IE_MES/js/echarts/echarts-all-3.js"></script>
    <script type="text/javascript" src="/IE_MES/js/echarts/world.js"></script>

    <!-- 引入Echarts依赖文件 结束 -->

    <!--[if lt IE 9]> <script src="/IE_MES/js/jquery/ie/html5shiv.js"></script> <script src="/IE_MES/js/jquery/ie/respond.min.js"></script><![endif]-->
    <link href="/IE_MES/js/date/bootstrap.min.css" rel="stylesheet">
    <link href="/IE_MES/js/date/font-awesome.min.css" rel="stylesheet">

    <script type="text/javascript" src="/IE_MES/js/system/user/updatePassword.js"></script>
    <style type="text/css">
        .l_err {
            background: none repeat scroll 0 0 #FFFCC7;
            border: 1px solid #FFC340;
            font-size: 12px;
            padding: 4px 8px;
            width: 200px;
            display: none;
        }
        
        .error {
            border: 3px solid #FFCCCC;
        }
        
        .form-group {
            padding-left: 15px
        }
        
        .left {
            text-align: left;
            padding-left: 10px;
        }
        
        .right {
            text-align: right;
        }
        
        .hidden-xs {
            display: inherit;
        }
        
        .dmycol-menu {
            position: absolute;
            background-color: white;
            font-size: 14px;
            text-align: left;
            list-style: none;
            border: 1px solid rgba(0, 0, 0, .15);
            z-index: 1000;
            margin-top: 8px;
            width: 120px;
            left: auto;
            right: 0;
        }
        
        .dmycol-menu>li {
            margin-left: -30px;
        }
        
        .span_checkbox {
            display: inline-block;
            vertical-align: middle;
            margin: 0;
            padding: 0;
            width: 20px;
            height: 20px;
            background: url(/IE_MES/images/custom.png) no-repeat;
            border: none;
            cursor: pointer;
            top: -2px;
        }
        
        .span_checkbox.checked {
            background-position: -20px 0;
        }
        
        .span_checkbox {
            background-position: 0 0;
        }
    </style>
    <!-- base end -->
    <script type="text/javascript">
        layui.use(['form', 'layedit', 'laydate'], function() {
            var form = layui.form(),
                layer = layui.layer,
                layedit = layui.layedit,
                laydate = layui.laydate;

            //创建一个编辑器
            var editIndex = layedit.build('LAY_demo_editor');

            //自定义验证规则
            form.verify({
                title: function(value) {
                    if (value.length < 5) {
                        return '标题至少得5个字符啊';
                    }
                },
                pass: [/(.+){6,12}$/, '密码必须6到12位'],
                content: function(value) {
                    layedit.sync(editIndex);
                }
            });

            //监听指定开关
            form.on('switch(switchTest)', function(data) {
                layer.msg('开关checked：' + (this.checked ? 'true' : 'false'), {
                    offset: '6px'
                });
                layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
            });

            //监听提交
            form.on('submit(demo1)', function(data) {
                layer.alert(JSON.stringify(data.field), {
                    title: '最终的提交信息'
                })
                return false;
            });


        });

        $(function() {
            //扩展
            $("#op_ok").click("click", function() {
                var data = grid.selectRow()[0];
                window.parent.call_input(data);
                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引  
                parent.layer.close(index);
            });
            $("#op_canner").click("click", function() {
                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引  
                parent.layer.close(index);
            });
        })



        function onloadurl() {
            $("[data-url]").each(function() {
                var tb = $(this);
                tb.html(CommnUtil.loadingImg());
                tb.load(rootPath + tb.attr("data-url"));
            });
        }
        layer.config({
            extend: ['skin/style.css'], //加载新皮肤
            fix: false, // 用于设定层是否不随滚动条而滚动，固定在可视区域。
            skin: 'layer-ext-myskin' //一旦设定，所有弹层风格都采用此主题。
        });
        var rootPath = "/IE_MES";
        /**
         * options:
         * url : 获取select数据的路径
         * name : input name
         * textFiled :显示
         * valueFiled:value
         * data : 查询条件{}
         * value ：默认值
         */
        function getSelectEx(byId, options) {
            if (byId && options) {
                if (options.url && options.textFiled &&
                    options.valueFiled && options.name) {
                    $.ajax({
                        type: "post", //使用get方法访问后台
                        dataType: "json", //json格式的数据
                        async: true, //同步   不写的情况下 默认为true
                        url: rootPath + options.url,
                        data: options.data,
                        success: function(data) {
                            for (var i = 0; i < data.length; i++) {
                                var selectObj = $("#" + byId).find("ul");
                                if (selectObj) {
                                    if (options.value == "" && i == 0) {
                                        $("#" + byId).append(
                                            "<button data-toggle='dropdown' class='btn btn-sm btn-default dropdown-toggle'> " +
                                            "<span class='dropdown-label'>" + data[i][options.textFiled] +
                                            "</span> <span class='caret'></span></button>");
                                        $("#" + byId).find("ul").append(
                                            "<li class='active'><a href='#'><input type='radio' name=" +
                                            options.name +
                                            " value=" + data[i][options.valueFiled] + " checked='checked'>" +
                                            data[i][options.textFiled] + "</a></li>");
                                    } else {
                                        if (options.value == data[i][options.valueFiled]) {
                                            $("#" + byId).append(
                                                "<button data-toggle='dropdown' class='btn btn-sm btn-default dropdown-toggle'> " +
                                                "<span class='dropdown-label'>" + data[i][options
                                                    .textFiled
                                                ] + "</span> <span class='caret'></span></button>");
                                            $("#" + byId).find("ul").append(
                                                "<li class='active'><a href='#'><input type='radio' name=" +
                                                options.name +
                                                " value=" + data[i][options.valueFiled] +
                                                " checked='checked'>" + data[i][options.textFiled] +
                                                "</a></li>");
                                        } else {
                                            $("#" + byId).find("ul").append(
                                                "<li class=''><a href='#'><input type='radio' name=" +
                                                options.name +
                                                " value=" + data[i][options.valueFiled] + " >" + data[i][
                                                    options.textFiled
                                                ] + "</a></li>");
                                        }
                                    }
                                }
                            }
                        }
                    });

                }
            }
        }
    </script>
    <link id="layuicss-http:1921681117:8080IE_MESlayuicssmoduleslayerskinstylecss" rel="stylesheet" href="http://192.168.1.117:8080/IE_MES/layui/css/modules/layer/skin/style.css" media="all">
    <!-- 返回顶部 -->
    <script type="text/javascript" src="/IE_MES/js/scrolltopcontrol.js"></script>
    <script type="text/javascript">
        $(function() {
            var winwidth = $("body").width();
            if (winwidth < 770) {
                $("#nav ul.lt li").click(function() {
                    $("#nav").removeClass("nav-off-screen");
                });
            }
            //---------修改人赵雷完毕----------
            var tb = $("#loadhtml");
            tb.html(CommnUtil.loadingImg());
            tb.load(rootPath + "/welcome.jsp");
            $("[nav-n]").each(
                function() {
                    $(this).bind(
                        "click",
                        function() {
                            var nav = $(this).attr("nav-n");
                            var sn = nav.split(",");
                            var html = '<li><i class="fa fa-home"></i>';
                            html += '<a href="index.shtml">Home</a></li>';
                            for (var i = 0; i < 2; i++) {
                                html += '<li><a href="javascript:void(0)">' +
                                    sn[i] + '</a></li>';
                            }
                            $("#topli").html(html);
                            var tb = $("#loadhtml");
                            tb.html(CommnUtil.loadingImg());
                            tb.load(rootPath + sn[2]);
                        });
                });
            setInterval("getScoreInfo()", 5000);
        });

        function getScoreInfo() {
            $.ajax({
                type: 'POST',
                data: "",
                url: rootPath + '/produce/getScoreInfo.shtml',
                success: function(e) {
                    var data = JSON.parse(e);
                    if (data.result) {
                        var rs = data.data;
                        $('#add_score').remove();
                        var start_time = rs.exam_start_time;
                        var end_time = rs.exam_end_time;
                        var surplus = rs.surplus;
                        var score = rs.score;
                        $('#score_ul').append(
                            "<li titile='当前时间为考试时间，请学生抓紧时间完成考试，考试评分只计算考试时间内的操作，非考试时间段内的操作不计分'" +
                            " id='add_score'><a" +
                            "href='#' class='navbar-brand' style='color: #1dff00'><font style='font-size: 14px;'> 考试模式 考试时间：" +
                            start_time +
                            "——" +
                            end_time +
                            ", 剩余时间：" +
                            surplus +
                            "分钟	总分：<span id='score'>" +
                            score +
                            "分</span></font></a></li>");
                    } else {
                        $('#add_score').remove();
                    }
                },
                error: function(xhr, e) {

                }
            });
        }

        //点击学生信息导入openLayer
        function openLayer() {
            // 点击学生学生信息导入时 弹出框的内容 
            var indexx = layer.open({
                type: 2,
                title: "模板上传",
                area: ['500px', '300px'], //宽高
                content: rootPath + '/message/upload.shtml'
            });
        }

        //点击帮助openHelpLayer
        function openHelpLayer() {
            // 点击帮助时 弹出框的内容 
            var indexx = layer.open({
                type: 2,
                title: "帮助文档",
                area: ['50%', '80%'], //宽高
                content: rootPath + '/help/open.shtml'
            });

        }

        // 点击工厂主数据导入 弹出框
        function openFactoryImport() {
            var indexx = layer.open({
                type: 2,
                title: "工厂主数据导入",
                area: ['500px', '300px'], //宽高
                content: rootPath + '/message/mainUpload.shtml'
            });
        }
    </script>
</head>

<body>
    <div id="loadhtml2">

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style type="text/css">
            .table-striped tbody tr.clickTr:nth-child(odd) td {
                background-color: rgb(34, 153, 34);
            }
            
            .clickTr {
                background: rgb(34, 153, 34);
            }
        </style>
        <script type="text/javascript" src="http://192.168.1.117:8080/IE_MES/js/production_process/pod_panel/assemble_pod.js"></script>
        <title>POD</title>


        <div class="contentPanel">
            <!-- 条件层 -->
            <form class="form-horizontal" role="form" id="process_condition_form">
                <fieldset>
                    <div class="form-group">
                        <label class="col-sm-1 control-label" for="ds_host">工单</label>
                        <div class="col-sm-4">
                            <div class="input-group">
                                <input type="text" class="form-control" name="formMap.workorderNo" id="workorder_input"> <span class="input-group-btn">
										<button class="btn btn-info" id="workorder" type="button" style="height: 34px;"
											onclick="getWorkOrder('workorder_input','shoporder_no');">
											<span class="glyphicon glyphicon-search"></span>
                                </button>
                                </span>
                            </div>
                        </div>
                        <label class="col-sm-2 control-label" for="ds_host">操作</label>
                        <div class="col-sm-4">
                            <div class="input-group">
                                <input type="text" class="form-control" id="operation_input" name="formMap.operation"> <span class="input-group-btn">
										<button class="btn btn-info" id="operation" type="button" style="height: 34px;"
											onclick="getOperation2('operation_input','operation_no');">
											<span class="glyphicon glyphicon-search"></span>
                                </button>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label" for="ds_name">资源</label>
                        <div class="col-sm-4">
                            <div class="input-group">
                                <input type="text" class="form-control" id="resource_input" name="formMap.resource">
                                <span class="input-group-btn">
										<button class="btn btn-info" id="operation_resource" type="button"
											style="height: 34px;"
											onclick="getResource('resource_input','operationResource_no');">
											<span class="glyphicon glyphicon-search"></span>
                                </button>
                                </span>
                            </div>
                        </div>
                        <label class="col-sm-2 control-label" for="ds_username">车间作业控制</label>
                        <div class="col-sm-4">
                            <input class="form-control" id="wc_sfc" type="text" name="formMap.wc_sfc">
                        </div>
                    </div>
                </fieldset>

                <ul class="nav nav-list">
                    <li class="divider"></li>
                </ul>
            </form>

            <!-- 按钮层 -->
            <div align="center" id="button_active">
                <!-- <button type="button" class="btn btn-default" onclick="assemblingPass();">通过</button>
					<button type="button" class="btn btn-primary" onclick="assemblingStart();">开始</button>
					<button type="button" class="btn btn-success" onclick="assemblingFinish();">完成</button>
					<button type="button" class="btn btn-info" onclick="assemblingUI();">装配</button>
					<button type="button" class="btn btn-warning" onclick="recode_nccode_ui()">记录不良</button>  -->
            </div>
        </div>

        <!-- 列表展示层 -->
        <div id="center_contpanel"></div>

        <!-- 列表展示层2 -->
        <div id="center_contpanel2"></div>

        <!-- 操作层 -->
        <div id="pod_task_div"></div>

    </div>
</body>

</html>